package com.itc.bpm.bean;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itc.common.core.validate.Add;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 表单设计实体
 */
@Data
@TableName("bpm_form_design")
public class BpmFormDesign extends BaseDO{
    @TableId
    private Long id;
    @TableField(condition = SqlCondition.LIKE)
    private String name;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "状态")
    private Integer  status;
    @NotNull(message = "表单内容不能为空",groups = Add.class)
    @ApiModelProperty(value = "表单内容")
    private String formConf;
    @ApiModelProperty(value = "表单版本")
    private String version;
    @ApiModelProperty(value = "表单编码")
    private String code;
    @ApiModelProperty(value = "表单字段")
    private String fields;
    @ApiModelProperty(value = "所属部门")
    private String deptId;
    @ApiModelProperty(value = "所属席位")
    private String seat;
}
